﻿using Topshelf;

namespace SimpleDnsForwarder
{
    class Program
    {
        static void Main(string[] args)
        {
            HostFactory.New(config =>
            {
                config.SetServiceName("dnsforworder");
                config.SetDisplayName("Simple DNS Forwarder");
                config.SetDescription("Simple DNS forwarder implementation using Ndns.");

                config.Service(hostSettings => new ForwarderApplication(hostSettings));

                config.RunAsNetworkService();
                config.StartAutomatically();
            }).Run();
        }
    }
}
